<?php

///libraries/joomla/factory.php

//header("Content-Type: text/javascript"); 

//$xdoc =& JFactory::getDocument();



global $wbDescPageBackground           ;
global $wbColorPageBackground          ;
global $wbDescContentBackground        ;
global $wbColorContentBackground       ;
global $wbDescContentText              ;
global $wbColorContentText             ;
global $wbDescDefaultLink              ;
global $wbColorDefaultLink             ;
global $wbDescModuleHeaderBackground   ;
global $wbColorModuleHeaderBackground  ;
global $wbDescMenuHeaderBackground     ;
global $wbColorMenuHeaderBackground    ;
global $wbDescTextHeaderBackground     ;
global $wbColorTextHeaderBackground    ;

// $doc->setMetaData( 'xxx:$wbColorTextHeaderBackground', $wbColorTextHeaderBackground);

?>

/*jslint white:false 
*/
function TXXWbColors()
{
  this.constants = 
  {
    wbDescPageBackground              : 'wbDescPageBackground'         ,
    wbColorPageBackground             : 'wbColorPageBackground'        ,
    wbDescContentBackground           : 'wbDescContentBackground'      ,
    wbColorContentBackground          : 'wbColorContentBackground'     ,     
    wbDescContentText                 : 'wbDescContentText'            ,            
    wbColorContentText                : 'wbColorContentText'           ,           
    wbDescDefaultLink                 : 'wbDescDefaultLink'            ,            
    wbColorDefaultLink                : 'wbColorDefaultLink'           ,           
    wbDescModuleHeaderBackground      : 'wbDescModuleHeaderBackground' , 
    wbColorModuleHeaderBackground     : 'wbColorModuleHeaderBackground',
    wbDescMenuHeaderBackground        : 'wbDescMenuHeaderBackground'   ,   
    wbColorMenuHeaderBackground       : 'wbColorMenuHeaderBackground'  ,  
    wbDescTextHeaderBackground        : 'wbDescTextHeaderBackground'   ,   
    wbColorTextHeaderBackground       : 'wbColorTextHeaderBackground'    
  };
  this.values = 
  {
    wbDescPageBackground              : '<?php echo $wbDescPageBackground         ; ?>',
    wbColorPageBackground             : '<?php echo $wbColorPageBackground        ; ?>',        
    wbColorPageBackground             : '<?php echo $wbColorPageBackground        ; ?>',
    wbDescContentBackground           : '<?php echo $wbDescContentBackground      ; ?>',
    wbColorContentBackground          : '<?php echo $wbColorContentBackground     ; ?>',     
    wbDescContentText                 : '<?php echo $wbDescContentText            ; ?>',            
    wbColorContentText                : '<?php echo $wbColorContentText           ; ?>',           
    wbDescDefaultLink                 : '<?php echo $wbDescDefaultLink            ; ?>',            
    wbColorDefaultLink                : '<?php echo $wbColorDefaultLink           ; ?>',           
    wbDescModuleHeaderBackground      : '<?php echo $wbDescModuleHeaderBackground ; ?>', 
    wbColorModuleHeaderBackground     : '<?php echo $wbColorModuleHeaderBackground; ?>',
    wbDescMenuHeaderBackground        : '<?php echo $wbDescMenuHeaderBackground   ; ?>',   
    wbColorMenuHeaderBackground       : '<?php echo $wbColorMenuHeaderBackground  ; ?>',  
    wbDescTextHeaderBackground        : '<?php echo $wbDescTextHeaderBackground   ; ?>',   
    wbColorTextHeaderBackground       : '<?php echo $wbColorTextHeaderBackground  ; ?>'
  };
  
  this.setSelectedColor = function (value)
  {
    this.selectedColor = value;
  }
  
  this.setValue = function (value)
  {
    this.values[this.selectedColor] = value;
  }
  
  this.getValue = function ()
  {
    return this.values[this.selectedColor];
  }
}
